import React, {Component} from 'react';
import {HashRouter, Route, Switch} from 'react-router-dom';

import './assets/css/reset.css';
import './assets/css/common.css';
import './app.scss';
import StatusComponent from "./view/StatusComponent/StatusComponent";
import GuideComponent from "./view/GuideComponent";
import InfoComponent from "./view/InfoComponent";
import InfoDescComponent from "./view/InfoComponent/desc";
import InfoAuditComponent from "./view/InfoComponent/audit";
import InfoRiskComponent from "./view/InfoComponent/riskDesc";
import SafeComponent from "./view/SafeComponent";
import ServiceComponent from "./view/ServiceComponent";
import RiskComponent from "./view/RiskComponent";
import RiskStart from "./view/RiskComponent/start";
import InviteComponent from "./view/InviteComponent";
import MyInviteComponent from "./view/MyInviteComponent";
import RiskEduComponent from "./view/RiskEduComponent";

require('./component/vconsole.js')

class App extends Component {

    constructor(props) {
        super(props);
    }

    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/invite" component={InviteComponent}/>
                    <Route path="/riskEdu" component={RiskEduComponent}/>
                    <Route path="/myInvite" component={MyInviteComponent}/>
                    <Route path="/risk" component={RiskComponent}/>
                    <Route path="/riskStart" component={RiskStart}/>
                    <Route path="/service" component={ServiceComponent}/>
                    <Route path="/guide" component={GuideComponent}/>
                    <Route path="/safe" component={SafeComponent}/>
                    <Route path="/safeInfo" component={InfoComponent}/>
                    <Route path="/safeDescInfo/:id" component={InfoDescComponent}/>
                    <Route path="/safeAuditInfo/:id" component={InfoAuditComponent}/>
                    <Route path="/safeAuditInfo/:id" component={InfoAuditComponent}/>
                    <Route path="/safeRiskInfo/:id" component={InfoRiskComponent}/>
                    <Route path="/" component={StatusComponent}/>
                </Switch>
            </HashRouter>
        );
    }
}

export default App;
